<div id="page" class="mainPage">
    <div class="pageContent">
        <div class="header">
            <?php include 'home_header.php'; ?>
        </div>
        <div class="mid-content">
            <div class="right-w-100">
                <div class="support-online">
                    <?php include 'support_online.php'; ?>
                    <div class="clear">&nbsp;</div>
                </div>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
        <div class="news-main-content">
            <div class="center-news-content">
                <div class="news-small-content">
                    <div class="news-category">
                        <?php include 'news_category.php';?>
                    </div>
                    <div class="news-list">
                        <div class="news-list-header">
                            <?php if(isset ($aryNewsParentCateogry[0])) {?>
                                <?php foreach ($aryNewsParentCateogry as $key => $value) {?>
                                <h3><a href="<?php echo $root_page;?>/tintuc/<?php echo $value['news_category_id'];?>/<?php echo $value['news_category_filter'];?>.html"><?php echo $value['news_category_name'];?></a></h3>
                                <?php } ?>
                            <?php }else{ ?>
                                <h3>Tin tức</h3>
                            <?php } ?>
                        </div>
                        <div class="news-list-content">
                            <div class="news-title">
                                <h1><?php echo $aryNews['news_title'];?></h1>
                            </div>
                            <div class="news-content">
                                <?php echo $aryNews['news_content'];?>
                            </div>
                            <div class="clear">&nbsp;</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="right-w-22">
                <div class="new-product">
                    <div class="right-item">
                        <?php include 'product_right_item.php'; ?>
                    </div>
                    <div class="fb-fanpage"></div>
                </div>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
        <div class="footer" id="footer"></div>
    </div>
</div>
<?php include 'mobile_menu.php'; ?>
<div id="mm-blocker"></div>
<div class="to_top">
    <a id="go-to-top" href="javascript:;"></a>
</div>
<script>
    function downloadJSAtOnload() {
    var element = document.createElement("script");
    element.src = "<?php echo $sub_domain['js'];?>/js/main/main.min.js";
    document.body.appendChild(element);
}

// Check for browser support of event handling capability
if (window.addEventListener)
    window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
    window.attachEvent("onload", downloadJSAtOnload);
else
    window.onload = downloadJSAtOnload;
</script>